package com.bbt.dormassistant.entity;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {

    private Integer messageId;


    private String userId;


    private String tittle;


    private Date time;


    private String text;


    private static final long serialVersionUID = 1L;


    public Integer getMessageId() {
        return messageId;
    }


    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }


    public String getUserId() {
        return userId;
    }


    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }


    public String getTittle() {
        return tittle;
    }


    public void setTittle(String tittle) {
        this.tittle = tittle == null ? null : tittle.trim();
    }


    public Date getTime() {
        return time;
    }


    public void setTime(Date time) {
        this.time = time;
    }


    public String getText() {
        return text;
    }


    public void setText(String text) {
        this.text = text == null ? null : text.trim();
    }



    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", messageId=").append(messageId);
        sb.append(", userId=").append(userId);
        sb.append(", tittle=").append(tittle);
        sb.append(", time=").append(time);
        sb.append(", text=").append(text);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }


}